<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>用户注册</title>
   <link rel="stylesheet" href="./assets/css/bootstrap.min.css">
</head>
<body>
<h1 align="center" style="margin-right:20px">用户注册</h1>
    <form method=post action="admin.php?c=user&m=add" enctype="multipart/form-data" class="form-horizontal">
      <div class="form-group">
        <label for="exampleInputUserName1" class="col-md-5 control-label">用户名</label>
        <div class="col-md-3">
          <input type="text" name="username" class="form-control" id="exampleInputUserName1" placeholder="姓名" required>
        </div>
      </div>
      <div class="form-group">
        <label for="exampleInputPassword1" class="col-md-5 control-label">密码</label>
        <div class="col-md-3">
          <input type="password" name="password" class="form-control" id="exampleInputPassword1" placeholder="密码" required>
        </div>
      </div>
      <div class="form-group">
        <label for="exampleInputAge1" class="col-md-5 control-label">生日</label>
        <div class="col-md-3">
          <input type="date" name="birthdate" class="form-control" id="exampleInputPassword1" placeholder="生日" required>
        </div>
      </div>
      <div class="form-group">
        <label class="col-md-5 control-label">性别</label>
        <div class="col-md-3">
          <label class="radio-inline">
            <input type="radio" name="gender" value=0 checked> 男
          </label>
          <label class="radio-inline">
            <input type="radio" name="gender" value=1> 女
          </label>
        </div>
      </div>
      <div class="form-group">
        <label class="col-md-5 control-label">爱好</label>
        <div class="col-md-3">
          <label class="checkbox-inline">
            <input type="checkbox" name="hobby[]" value="旅游"> 旅游
          </label>
          <label class="checkbox-inline">
            <input type="checkbox" name="hobby[]" value="登山"> 登山
          </label>
          <label class="checkbox-inline">
            <input type="checkbox" name="hobby[]" value="健身"> 健身
          </label>
          <label class="checkbox-inline">
            <input type="checkbox" name="hobby[]" value="上网"> 上网
          </label>
          <label class="checkbox-inline">
            <input type="checkbox" name="hobby[]" value="游泳"> 游泳
          </label>
        </div>
      </div>
      <div class="form-group">
        <label class="col-md-5 control-label">学历</label>
        <div class="col-md-3">
          <select class="form-control" name="degree">
            <option value="">请选择</option>
            <option value=0>高中</option>
            <option value=1>大学</option>
            <option value=2>研究生</option>
            <option value=3>博士生</option>
          </select>
        </div>
      </div>
      <div class="form-group">
        <label for="exampleInputTextarea1" class="col-md-5 control-label">自我介绍</label>
        <div class="col-md-3">
          <textarea class="form-control" rows="3" id="exampleInputTextarea1" placeholder="自我介绍" name="intro"></textarea>
        </div>
      </div>
      <div class="form-group">
        <label for="exampleInputFile" class="col-md-5 control-label">头像</label>
        <div class="col-md-3">
          <input type="file" name="pic" id="exampleInputFile" required>
        </div>
      </div>
      <div class="form-group">
        <div class="col-sm-offset-5 col-sm-10">
          <input type="submit" class="btn btn-success" value="提交">
          <input type="reset" class="btn btn-primary" value="重置">
        </div>
      </div>
    </form>
</form>
</body>
	
